package com.example.userconsumer.execepiton;

import cn.example.entity.User;
import com.example.userconsumer.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName UserServiceFallBack
 * @Description TODO
 * @Author yaozhaobao
 * @Date 2020/7/14 11:35
 * @Version 1.0
 **/
@Component
@Slf4j
public class UserServiceFallBack implements UserService {


    @Override
    public boolean login(String username, String password) {
        log.info("进入容错处理类===login");
        return false;
    }

    @Override
    public boolean login2(User user) {
        log.info("进入容错处理类===login2");
        return false;
    }

    @Override
    public boolean login3(Integer count) {
        return false;
    }
}
